home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / flashbox.swf / scripts / DefineButton2_113 / BUTTONCONDACTION on(release, keyPress Enter).as
Encoding:
Text File  |  2006-09-05  |  444 b   |  24 lines

  1. on(release, keyPress "<Enter>"){
  2.    if(eval("/:skiplevel") >= "1" and "10" >= eval("/:skiplevel"))
  3.    {
  4.       tellTarget("/pit")
  5.       {
  6.          call("Restart");
  7.          gotoAndPlay(1);
  8.       }
  9.       tellTarget("/pit/GameOverClone")
  10.       {
  11.          gotoAndStop(1);
  12.       }
  13.       gotoAndStop(1);
  14.    }
  15.    else
  16.    {
  17.       tellTarget("MoveSound")
  18.       {
  19.          gotoAndStop("MoveSound");
  20.          play();
  21.       }
  22.    }
  23. }
  24.